<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page">
  <xsl:output method="html" encoding="utf-8"/>
  <xsl:template match="/">
    <xsl:choose>
      <xsl:when test="rows/row/RtnCode=1">
        <xsl:value-of disable-output-escaping="yes" select="page:xUpload('myfile')"/>
      </xsl:when>
      <xsl:otherwise>
        <script type="text/javascript">
			if(typeof(window.parent.OnUploadCompleted)=='function')window.parent.OnUploadCompleted('<xsl:value-of select="rows/row/RtnCode"/>','','','<xsl:value-of select="rows/row/RtnMessage"/>');
			</script>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>